home *** CD-ROM | disk | FTP | other *** search
- #import "PopUpButton.h"
-
- @implementation Button (PopUpButton)
-
- - setPopUpTitle: (const char *)str
- {
- int index = [[self target] indexOfItem: str];
-
- if(index == -1)
- return nil;
-
- [self setTitle: str];
- [[[self target] itemList] selectCellAt: index : 0];
- return self;
- }
-
-
- @end
-